using UnityEditor;

namespace LS.GameKit.Editor
{
    [CustomEditor(typeof(MultipleCommandSender))]
    public class MultipleCommandSenderInspector : CommandSenderInspector
    {
        protected SerializedProperty m_CommandTypes;
        protected SerializedProperty m_Value;
        protected SerializedProperty m_CanSend;

        protected override void OnEnable()
        {
            base.OnEnable();
            m_CommandTypes = serializedObject.FindProperty("commandTypes");
            m_Value = serializedObject.FindProperty("m_Value");
            m_CanSend = serializedObject.FindProperty("canSend");
        }

        public override void DrawInspectorItems()
        {
            base.DrawInspectorItems();
            EditorGUILayout.Space(15);
            EditorGUILayout.PropertyField(m_CanSend);
            EditorGUILayout.PropertyField(m_Value);
            EditorGUILayout.PropertyField(m_CommandTypes);
        }
    }
}
